package com.joven.core.constant.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

/**
 * @author joven_wong
 * 2021/8/12 10:39
 */
public enum Yon {
    Y("1", "是"),
    N("0", "否");

    @EnumValue
    private String code;
    private String name;

    Yon(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
